#include <iostream>

using namespace std;

int main()
{
    int var[] = {10, 100, 1000};
    int *ip = var;
    int i;

    for(i = 0; i < 3; i++)
    {
        cout << "Address of var[" << i << "] = " << ip << endl;
        cout << "Value of var[" << i << "] = " << *ip << endl;

        ip++;//指针自加
    }
    return 0;
}
